package com.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 问题回复表
 * @TableName reply
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Reply {
    /**
     * 回复表id
     */
    private Integer replyId;

    /**
     * 回复内容
     */
    private String replyReplyText;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date replyCreateTime;

    /**
     * 问题表id 外键 一对一
     */
    private Integer questionId;

    /**
     * 回复的用户id查询 外键 一对一
     */
    private Integer userId;

    private User user;
    private Question question;
}